:root {
  --text-color: rgba(0,0,0,.8);
  --text-color-alt: rgba(0,0,0,.54);
  --mark-color: #eab308;
  --link-color: #009be5;
  --link-hover-color: #00aeff;
  --font-size-base: 16px;
  --line-height-base: 1.5;
  --code-bg-color: #eee;
  --code-font-family: Menlo, Monaco, Consolas, 'Courier New', monospace;
  --text-font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
  --quote-font-family: Georgia, Times, 'Times New Roman', serif;
}

[data-theme="dark"] {
  --text-color: rgba(255, 255, 255, 0.8);
  --text-color-alt: rgba(255, 255, 255, .54);
  --code-bg-color: rgba(255, 255, 255, 0.07);
}

body {
  color: var(--text-color);
  font-family: var(--text-font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  padding: 1rem 1rem 4rem 1rem;
  margin: auto;
}

h1, h2, h3, h4, h5, h6 {
  color: inherit;
  font-family: inherit;
  line-height: 1.2;
  font-weight: 500;
  margin: 1.5rem 0 1rem;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.4rem; }
h5 { font-size: 1.2rem; }
h6 { font-size: 1rem;   }

small {
  color: var(--text-color-alt);
  vertical-align: bottom;
}

pre, code {
  color: var(--text-color);
  font-family: var(--code-font-family);
  font-size: var(--font-size-base);
}
pre {
  display: block;
  white-space: pre;
  margin: 1em 0;
}
pre > code {
  padding: .5em;
  display: block;
  overflow-x: auto;
}
code {
  line-height: inherit;
  padding: 2.5px 5px;
  border-radius: 6px;
  background-color: var(--code-bg-color);
}

a {
  color: var(--link-color);
  text-decoration: none;
  background-color: transparent;
}
a:hover,
a:focus {
  color: var(--link-hover-color);
  text-decoration: underline;
}

blockquote {
  border-left: 2px solid var(--text-color);
  font-family: var(--quote-font-family);
  font-style: italic;
  margin: 1em 0;
  padding-left: 1em;
}

figcaption {
  font-family: var(--quote-font-family);
}

mark {
  background-color: var(--mark-color);
}

hr {
  border: 0;
  border-top: 1px solid var(--text-color-alt);
  display: block;
  margin-top: 1em;
  margin-bottom: 1em;
  width: 100%;
  box-sizing: content-box;
  height: 0;
  overflow: visible;
}

img {
  height: auto;
  max-width: 100%;
  vertical-align: baseline;
}

img, figure {
  height: auto;
}
img, figure, iframe, video {
  display: block;
  max-width: 100%;
  margin: 0;
  border: none;
}

div {
  max-width: 100%;
}

table {
  border-collapse: collapse;
  margin-bottom: 10px;
  width: 100%;
  table-layout: fixed;
}

table caption {
  text-align: left;
}

td,
th {
  padding: 6px;
  text-align: left;
  vertical-align: top;
  word-wrap: break-word;
}

thead {
  border-bottom: 1px solid var(--text-color);
}

tfoot {
  border-top: 1px solid var(--text-color);
}

tbody tr:nth-child(even) {
  background-color: var(--code-bg-color);
}
